package com.spzx.controller;

import com.spzx.common.core.web.controller.BaseController;
import com.spzx.common.core.web.domain.AjaxResult;
import com.spzx.service.IndexService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/index")
@Tag(name="首页数据展示")
public class IndexController extends BaseController {
    @Resource
    IndexService indexService;
    @GetMapping
    @Operation(summary = "首页展示")
    public AjaxResult index() {
        return success(indexService.getIndexPageData());
    }
}
